﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using phudieuhungthinh.BL.Model;
using phudieuhungthinh.DAL;
using phudieuhungthinh.DAL.Repositories;
using System.IO;

namespace phudieuhungthinh.BL
{
    public class LinkImpl
    {
        public List<LinkModel> GetHomeLinks()
        {
            var rep = new LinkRepository();
            List<LinkModel> list = (from x in rep.QueryLink(y => y.HomeDisplay)
                                    orderby x.HomeOrders
                                    select x).ToList().Select(x => new LinkModel(x)).ToList();
            return list;
        }

    }
}
